\documentclass[11pt,a4paper]{book}
\usepackage[utf8]{inputenc}

\newcommand{\Title}    {Erstellung eines Tools zur Analyse und Berechnung von Benutzer-Profilen mit
modernen Java-Technologien}                  % Title of the thesis
\newcommand{\TitlePDF} {Titel der Arbeit}                  % Title of the thesis
\newcommand{\Author}   {Dong Han}              % Firstname Family name
\newcommand{\Subject}  {Thema}                             % Thema
\newcommand{\Keywords} {Non-Obvious Profile, Gugubarra, NOP-Engine, NOP, Java, JSF, Hibernate, Spring, Web-Service}  % Keywords
\newcommand{\Date}     {16. Dezember 2008}                    % Abgabedatum / submission deadline

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Packages

\input{util/packages}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% help commands

\input{util/commands}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\makeindex


\newboolean{model}


\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

%\lstset{
%        language=SQL,
%        basicstyle=\small\sf,
%        escapechar=\%,
%        floatplacement=htbp,
%        fontadjust=false,
%        framextopmargin=2.0pt,
%        framexbottommargin=2.0pt,
%        framexleftmargin=2.0pt,
%        framexrightmargin=2.0pt,
%        aboveskip=\medskipamount,
%        belowskip=\medskipamount,
%        tabsize=4,
%        mathescape=false,
%        breaklines=true
%}

\def\squareforqed{\hbox{\rlap{$\sqcap$}$\sqcup$}}
\def\qed{\ifmmode\squareforqed\else{\unskip\nobreak\hfil
\penalty50\hskip1em\null\nobreak\hfil\squareforqed
\parfillskip=0pt\finalhyphendemerits=0\endgraf}\fi}

%\theoremstyle{break}
%\theorembodyfont{\upshape}
\renewcommand{\thepage}{\Roman{page}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{\Title}
\author{\Author}
\date{\Date}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



%\newtheorem{example}{Example}[chapter]
%newtheorem{definition}{Definition}[chapter]
%newtheorem{conclusion}[definition]{Conclusion}
%newtheorem{proposition}[definition]{Proposition}
%newtheorem{theorem}[definition]{Theorem}
%newtheorem{thmdef}[definition]{Theorem and Definition}
%newtheorem{lemma}[definition]{Lemma}
%newtheorem{corollary}[definition]{Corollary}
%newtheorem{cordef}[definition]{Corollary and Definition}
%newtheorem{algorithm}{Algorithm}[chapter]
%newtheorem{postulate}{Postulate}[chapter]

%newenvironment{proof}{\noindent\emph{Proof.~}}{\qed\vspace{1em}}
%newenvironment{proofof}[1]{\noindent\emph{Proof of #1.~}\small}{\qed\vspace{1em}}
%newenvironment{proofsketch}{\noindent\emph{Proof Sketch.~}\small}{\qed\vspace{1em}}
%newenvironment{TODO}{\noindent\hrulefill\\[.5ex]\textbf{TODO:}\begin{itemize}}{\end{itemize}\hrulefill}

\newcommand{\doubleall}{\ensuremath{\forall\mskip-8mu plus0mu minus0mu\forall}}
\newcommand{\M}{\ensuremath{M}}
\newcommand{\Int}{\ensuremath{I}}
\newcommand{\TQground}{\ensuremath{\mathcal{T}^{g}}}
\newcommand{\TQ}{\ensuremath{\mathcal{T}^{q}}}
\newcommand{\Tdb}{\ensuremath{\mathcal{T}^{d}}}
\newcommand{\naf}{\ensuremath{\neg}}
\newcommand{\TPapp}[1]{\ensuremath{T_P\!\!\uparrow\!\!#1}}
\newcommand{\PSet}{\ensuremath{\mathcal{P}}}
\newcommand{\scup}{\ensuremath{\circ}}
\newcommand{\Goal}[2]{\ensuremath{#1 \leftarrow_g #2}}
\newcommand{\Rule}[2]{\ensuremath{#1 \leftarrow #2}}
\newcommand{\Query}{\ensuremath{\mathcal{Q}}}
\newcommand{\larr}{\ensuremath{\leftarrow}}
\newcommand{\as}{\ensuremath{\rightarrow}}
\newcommand{\rf}[1]{\ensuremath{\uparrow}#1}
\newcommand{\scopeS}{\ensuremath{\ll\!\!\!}}
\newcommand{\scopeE}{\ensuremath{\gg}}
\newcommand{\scope}[1]{\ll #1\gg}
\newcommand{\mth}[1]{\ensuremath{#1}}
\newcommand{\mtc}[1]{\ensuremath{\mathcal{#1}}}
\newcommand{\Prog}{\ensuremath{P}}
\newcommand{\Store}{\ensuremath{\mathcal{S}}}
\newcommand{\tn}[1]{\ensuremath{t_{#1}}}
\newcommand{\simul}{\ensuremath{\preceq}}
\newcommand{\substsub}{\ensuremath{\subseteq}}
\newcommand{\substeq}{\ensuremath{=}}
\newcommand{\hl}[1]{\textbf{\redc #1}}
\newcommand{\querc}{\color{darkgreen}}
\newcommand{\consc}{\color{blue}}
\newcommand{\references}{\ensuremath{\uparrow}}
\newcommand{\CONS}{{\redc\!\!\! CONSTRUCT\blackc}}
\newcommand{\FROM}{{\redc\!\!\! FROM\blackc}}
\newcommand{\END}{{\redc\!\!\! END\blackc}}
\newcommand{\mybox}[1]{\fbox{\rule[-0.6ex]{0ex}{2.4ex}#1}}

\renewcommand{\leadsto}{\ensuremath{\rightarrow}}
\renewcommand{\subset}{\subsetneq} % we use subsetneq instead of subset


% Verbatim environments
\DefineVerbatimEnvironment%
  {Grammar}{Verbatim}
  {numbers=left,frame=lines}

\DefineVerbatimEnvironment%
  {ExVerbatim}{Verbatim}
  {frame=none,commandchars=\\\(\)}
%

% PST Pictures
\newcommand{\knoten}[4]{\rput(#1){\circlenode{#2}{#3}}\rput(#1){\rnode{DUMMY}{\rule[-0.5ex]{0ex}{10ex}#4}}}

% Colors
%definecolor{darkgreen}{rgb}{0,.6,0}
%definecolor{darkblue}{rgb}{0,0,0.5}
%definecolor{darkred}{rgb}{.56,0,0}
%definecolor{violet}{rgb}{.7,.3,1}
%definecolor{variablecolor}{rgb}{.3,.5,1}
%definecolor{tagcolor}{rgb}{.15,.25,.5}
%definecolor{orange}{rgb}{.5,.35,0}

%definecolor{pastyellow}{rgb}{1,1,.5}
%definecolor{pastred}{rgb}{1,.5,.5}
%definecolor{pastblue}{rgb}{.5,.5,1}
%newrgbcolor{pastblue}{.5 .5 1}

%newcommand{\blackc}{\color{black}}
%newcommand{\greenc}{\color{darkgreen}}
%newcommand{\bluec}{\color{darkblue}}
%newcommand{\redc}{\color{darkred}}
%newcommand{\orangec}{\color{orange}}
%newcommand{\varc}{\color{variablecolor}}
%newcommand{\vioc}{\color{violet}}

%definecolor{pastred}{rgb}{1,.9,.9}
%definecolor{pastblue}{rgb}{.9,.9,1}
%definecolor{pastgreen}{rgb}{.9,1,.9}

%newcommand{\bgred}[1]{\colorbox{pastred}{#1}}
%newcommand{\bggreen}[1]{\colorbox{pastgreen}{#1}}
%newcommand{\bgblue}[1]{\colorbox{pastblue}{#1}}
%newcommand{\tagc}{\color{tagcolor}\!\!\!}
%newcommand{\ntagc}{\color{black}\!\!\!}
%newcommand{\tagS}[1]{\color{tagcolor} <#1>\color{black} }
%newcommand{\tagE}[1]{\color{tagcolor} </#1>\color{black} }
%newcommand{\keyword}[1]{\texttt{\redc #1\blackc}}


% in examples
%newcommand{\variable}[1]{\varc\!\!\! var\bluec\ #1\blackc}
%newcommand{\varas}[1]{\varc\!\!\! var\bluec\ #1\varc\ \as\blackc}
%newcommand{\varasf}[1]{\varc\!\!\! var\bluec\ #1\varc\ \ensuremath{\rightsquigarrow}\blackc}
%newcommand{\str}[1]{\greenc "#1"\blackc}
%newcommand{\fun}[2]{\vioc #1 (\blackc #2\vioc )\blackc }
%newcommand{\lbl}[1]{\textit{(#1)}}
%newcommand{\br}[1]{(#1)}

% grammar
%newcommand{\strp}[1]{\greenc '#1'\blackc}
%newcommand{\nt}[1]{\color{tagcolor} <#1>\blackc}

%newcommand{\ntt}[1]{\textit{\texttt{<#1>}}}

%newcommand{\rthead}[1]{\textit{\texttt{#1}}}

%renewcommand{\headrulewidth}{0.4pt}
%renewcommand{\footrulewidth}{0.4pt}

%newcommand{\indexdef}[1]{\index{#1}}
%newcommand{\indexconcept}[1]{\index{#1}}



%newcommand{\subscript}[1]{\ensuremath{_{#1}}}

% for the jpg graphics
\DeclareGraphicsRule{.JPG}{eps}{*}{`jpeg2ps #1}
\graphicspath{{figures/}}

\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% First Pages

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\include{title/main}
%\tableofcontents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\cleardoublepage
\setcounter{page}{1}
\renewcommand{\thepage}{\arabic{page}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%chapter introduction
\include{chapters/introduction/introduction}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%chapter base technic
%\include{chapters/technic_concept/tech}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% chapter Nop-Engine
\include{chapters/nopengine/nopengine}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% chapter Algo
\include{chapters/algo/algo}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% chapter requirements analysis
\include{chapters/requirements_analysis/requirement}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%chapter design of the nop engine and persistence layer
\include{chapters/design/design}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%chapter implement of the nop engine and persistence layer
\include{chapters/implement/impl}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% chapter unit test
\include{chapters/test/test}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%chapter summary
\include{chapters/summary/summary}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%chapter outlook
%\include{chapters/outlook/main}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Appendix
%\include{appendix/main}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%set the style for bibtex
\bibliographystyle{alpha}
\bibliography{thesis}
\end{document}

